#include "mainwindow.h"
#include <QDebug>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent), ui(new Ui::Form)
{

    ui->setupUi(this);
    ui->comboBox_3->setCurrentIndex(2);
}

MainWindow::~MainWindow()
{

}

void MainWindow::on_comboBox_currentIndexChanged(int index)
{
    ui->widget->setCalendarStyle((Calendar::CalendarStyle)index);
}

void MainWindow::on_comboBox_2_currentIndexChanged(int index)
{
    ui->widget->setSelectType((Calendar::SelectType)index);
}


void MainWindow::on_comboBox_3_currentIndexChanged(int index)
{
    ui->widget->setWeekNameFormat((Calendar::WeekNameFormat)index);
}



void MainWindow::on_checkBox_stateChanged(int arg1)
{
    ui->widget->setShowLunar(arg1!=0);
}
